package com.feign;

import com.feign.impl.TestFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/6/13 20:58
 * @since JDK 1.8
 */
@FeignClient(value = "feign-provider1",fallback = TestFeignImpl.class)
public interface TestFeign {

    @GetMapping(value = "/welcome")
    String hello();

}
